<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	
  </head>
  
  <body>
  <h2>欢迎管理员${param.userName}登录</h2>
  <a href="studentController/selectStudent">显示学生信息</a>
    <table border="0" align="center">
    	<tr>
    		<td>年级ID<td>
    		<td>年级名称<td>
    		<td>操作<td>
    	<tr>
    	<c:forEach var="g" items="${glist}">
    		<tr>
    			<td>${g.gradeId}<td>
    			<td>${g.gradeName}<td>
    			<td><a href="updateGrade.jsp?gId=${g.gradeId}">修改</a>
    			<a href="gradeController/delGrade?gradeId=${g.gradeId}">删除</a>
    			<a href="addGrade.jsp">添加</a>
    			<td>
    		<tr>
    	</c:forEach>
    </table>
  </body>
</html>
